#ifndef PERSIST_ICE
#define PERSIST_ICE

module AcornPersist
{
    class UnionDiscriminator {
    };
    class MemberInt extends UnionDiscriminator {
        int i;
    };
    class MemberFloat extends UnionDiscriminator {
        float f;
    };
    class MemberString extends UnionDiscriminator {
       string s;
    };

    interface Persist
    {
        void put(string category, string key, UnionDiscriminator value, int radio);
        UnionDiscriminator get(string category, string key, int radio);
        void save();
        string getProfiles();
        void setProfile(string profile);
        string getProfile();
    };
};

#endif
